<template>
	<view :style="$s.view_color">
		<my-navbar :name="nav_title"></my-navbar>
		<view class="detail">
			<u-parse :content="$c.html_decode(content)"></u-parse>
		</view>
	</view>
</template>

<script>
	import { mapState,mapMutations } from 'vuex'
	export default {
		data() {
			return {
				nav_title:'分销权益',
				content:"",
			}
		},
		onLoad(option){
		},
		onShow(){
			this.initData()
		},
		computed:{
			...mapState({
				$s:state => state.$style,
			}),
		},
		methods: {
			initData(){
				this.$u.api.agentInfo().then(res=>{
					this.content=res.data.agent.content
				})
			},
		}
	}
</script>

<style lang="scss">
	.detail{
		margin: 20rpx;
		padding: 30rpx;
	}
</style>
